#include "WinUnit.h"
#include "HandHistoryParser.h"
//#include "HandInfo.h"
//#include "HandInfoExtractor.h"
#include "FileNamesRetriever.h"
#include "Player.h"
#include "Action.h"
#include <iostream>
#include <string>
#include <list>
#include <algorithm>
#include <functional>
#include <direct.h>

using namespace std;
using namespace tr1;

namespace
{
	HandHistoryParser parser = HandHistoryParser();
	char workingDir[_MAX_PATH];
	string WORKING_DIR;
	string SAMPLES_DIR;
	string PROJECT_DIR;	
}

FIXTURE(ActionPatcherFixture);

SETUP(ActionPatcherFixture)
{
	_getcwd(workingDir, _MAX_PATH);
	WORKING_DIR = string(workingDir);
	SAMPLES_DIR = WORKING_DIR + "\\..\\..\\..\\data\\samples\\";
}

TEARDOWN(ActionPatcherFixture)
{
	// clean up after yourself here!
}

bool TestStreetUpdate(string fileName)
{
	list<Hand> & hands = parser.Parse(SAMPLES_DIR + fileName);

	return true;
}

BEGIN_TESTF(ActionPatcherTest, ActionPatcherFixture)
{
	WIN_ASSERT_TRUE(TestStreetUpdate("singlehand.txt")
		);
}
END_TESTF